#ifndef CALCULATORWINDOW_H
#define CALCULATORWINDOW_H

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QGridLayout>
#include "ExpressionEvaluator.h"

class CalculatorWindow : public QWidget
{
    Q_OBJECT

public:
    explicit CalculatorWindow(QWidget *parent = nullptr);
    ~CalculatorWindow();

private slots:
    void onButtonClicked();

private:
    QLineEdit *m_display;
    ExpressionEvaluator m_evaluator;

    QPushButton *createButton(const QString &text);
};

#endif // CALCULATORWINDOW_H
